package pe.gob.onpe.facade.local;

import java.util.List;
import javax.ejb.Local;

import pe.gob.onpe.ejb.ListaCandidatosPostulante;
import pe.gob.onpe.ejb.id.ListaCandidatosPostulanteId;


/**
 * Local interface for ListaCandidatosPostulanteFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Local
public interface ListaCandidatosPostulanteFacadeLocal {
	/**
	 * Perform an initial save of a previously unsaved ListaCandidatosPostulante
	 * entity. All subsequent persist actions of this entity should use the
	 * #update() method.
	 * 
	 * @param entity
	 *            ListaCandidatosPostulante entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(ListaCandidatosPostulante entity);

	/**
	 * Delete a persistent ListaCandidatosPostulante entity.
	 * 
	 * @param entity
	 *            ListaCandidatosPostulante entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(ListaCandidatosPostulante entity);

	/**
	 * Persist a previously saved ListaCandidatosPostulante entity and return it
	 * or a copy of it to the sender. A copy of the ListaCandidatosPostulante
	 * entity parameter is returned when the JPA persistence mechanism has not
	 * previously been tracking the updated entity.
	 * 
	 * @param entity
	 *            ListaCandidatosPostulante entity to update
	 * @returns ListaCandidatosPostulante the persisted
	 *          ListaCandidatosPostulante entity instance, may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public ListaCandidatosPostulante update(ListaCandidatosPostulante entity);

	public ListaCandidatosPostulante findById(ListaCandidatosPostulanteId id);

	/**
	 * Find all ListaCandidatosPostulante entities with a specific property
	 * value.
	 * 
	 * @param propertyName
	 *            the name of the ListaCandidatosPostulante property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ListaCandidatosPostulante> found by query
	 */
	public List<ListaCandidatosPostulante> findByProperty(String propertyName,
			Object value, int... rowStartIdxAndCount);

	public List<ListaCandidatosPostulante> findByNombre(Object nombre,
			int... rowStartIdxAndCount);

	public List<ListaCandidatosPostulante> findByRutasimboloasociado(
			Object rutasimboloasociado, int... rowStartIdxAndCount);

	public List<ListaCandidatosPostulante> findByNumerolistacandidato(
			Object numerolistacandidato, int... rowStartIdxAndCount);

	public List<ListaCandidatosPostulante> findByNumeroordenlistacandidato(
			Object numeroordenlistacandidato, int... rowStartIdxAndCount);

	/**
	 * Find all ListaCandidatosPostulante entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ListaCandidatosPostulante> all ListaCandidatosPostulante
	 *         entities
	 */
	public List<ListaCandidatosPostulante> findAll(int... rowStartIdxAndCount);
}